#!/usr/bin/node

const log = console.log;

const cp = require('child_process');
const cmd = process.argv[2];

log('cmd:',cmd);

cp.exec(cmd,(err,data)=>{
  if(err){
    console.error(err.message);
    process.exit(1);
  }
  log(data);
})
